package com.gjzhao.fmmall.dao;

import com.gjzhao.fmmall.entity.Orders;
import com.gjzhao.fmmall.generator.GeneralMapper;
import com.gjzhao.fmmall.vo.OrdersVO;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface OrdersMapper extends GeneralMapper<Orders> {

    /**
     * 根据用户id和订单状态查询订单信息
     *
     * @param userId
     * @param status
     * @param start
     * @param limit
     * @return
     */
    List<OrdersVO> selectOrderByUserIdAndStatus(@Param("userId") String userId,
                                                @Param("status") String status,
                                                @Param("start") int start,
                                                @Param("limit") int limit);
}